<form class="layui-form" action="" id="requestForm">

    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">Header</li>
            <li>Body</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <input type="text" name="uri" autocomplete="off" class="layui-input" value="{uri}">
                <input type="hidden" name="https" autocomplete="off" class="layui-input" value="{https}">
                <input type="hidden" name="httpMethod" autocomplete="off" class="layui-input" value="{httpMethod}">
                <table class="layui-table" style="table-layout:fixed" id="request">
                    <colgroup>
                        <col width="120">
                        <col width="150">
                        <col maxWidth="800">
                    </colgroup>
                    <tbody>
                    {requestHeader}
                    <tr>
                        <td>
                            <div class="layui-row">
                                <span class="layui-badge layui-bg-blue addrow">增加</span>
                                <span class="layui-badge removerow">删除</span>
                            </div>
                        </td>
                        <td>
                            <select name="names[]">
                                {foreach}
                                <option value="{value}" {selected}>{name}</option>
                                {/foreach}
                            </select>
                        </td>
                        <td style="word-break:break-all">
                            <input type="text" name="values[]" autocomplete="off" class="layui-input" value="{value}">
                        </td>
                    </tr>
                    {/requestHeader}
                    <tbody>
                </table>
            </div>
            <div class="layui-tab-item">
                <div class="layui-form-item layui-form-text">
                    <div class="layui-input-inline">
                        {body}
                        <textarea name="body" placeholder="请输入内容" rows="20" cols="200"
                                  class="layui-textarea">{bodyContent}</textarea>
                        {/body}
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>